﻿using Production.CommonLib.Models;
using Swimj.CommonLib.Base;

namespace Production.RazorLib.Services;

public interface IProductionResourceService
{
    Task<PaginatedResult<ProductionResourceInfoResponseDto>?> QueryProductionResourcesByPage(
        ProductionResourceSearchRequestDto searchRequestDto);

    Task<Result<ProductionResourceInfoResponseDto>?> UpdateProductionResource(int key, ProductionResourceEditRequestDto editRequestDto);
    
    Task<Result<ProductionResourceInfoResponseDto>?> CreateProductionResource(ProductionResourceEditRequestDto editRequestDto);
    
    Task<Result<ProductionResourceInfoResponseDto>?> GetProductionResource(int key);
}